<?php
// +----------------------------------------------------------------------
// | Yzncms [ 御宅男工作室 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018 http://yzncms.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 御宅男 <530765310@qq.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 全局路由
// +----------------------------------------------------------------------
//use think\facade\Route;onMessageSend1

//---------------------微信小程序------------------------------------
Route::rule('wxLogin', 'app/Index/wxLogin'); //获取openid
Route::rule("upload_img", 'app/Index/upload_img'); //上传图片
Route::rule("getPhone", 'app/Index/getPhone');  //获取手机号
Route::rule("deuser", 'app/Index/deuser'); //保存用户信息
Route::rule('getConfigAdmin', 'app/Index/getConfigAdmin');// 获取各项配置
Route::rule('getBanner', 'app/index/getBanner');//获取banner图
Route::rule('getIndexCateBg', 'app/Index/getIndexCateBg');//首页三张分类背景


Route::rule('getCateList', 'app/Index/getCateList');//获取商品分类
Route::rule('getNotice', 'app/Index/getNotice');//获取通知公告
Route::rule('indexGoods', 'app/Index/indexGoods');//首页商品列表 限制每项3个
Route::rule('getMaterial', 'app/Index/getMaterial');//获取素材

Route::rule('getMaterialDetail', 'app/Index/getMaterialDetail');//获取素材详情

Route::rule('getMemberInfo', 'app/WxUser/getMemberInfo');//获取用户信息
Route::rule('updateUserinfo', 'app/WxUser/updateUserinfo');//修改用户信息
Route::rule('getGoodsList', 'app/index/getGoodsList');//商品列表
Route::rule('getGoodsDetail', 'app/WxUser/getGoodsDetail');//商品详情
Route::rule('getGoodsAttr', 'app/WxUser/getGoodsAttr');//商品规格


Route::rule('getAddressList', 'app/WxUser/getAddressList');//获取收货地址
Route::post('addAddress', 'app/WxUser/addAddress');//增加收货地址
Route::post('editAddress', 'app/WxUser/editAddress');//编辑收货地址
Route::rule('getDefaultAddress', 'app/WxUser/getDefaultAddress');//获取默认地址
Route::rule('getAddressById', 'app/WxUser/getAddress2');//通过id获取地址详情
Route::get('delAddress', 'app/WxUser/delAddress'); //删除地址
Route::get('setDefaultAddress', 'app/WxUser/setDefaultAddress'); //设置默认地址


Route::rule('addGoodsCar', 'app/WxUser/addGoodsCar'); //加入购物车
Route::rule('addGoodsCar2', 'app/WxUser/addGoodsCar2'); //数组
Route::rule('getGoodsCarList', 'app/WxUser/getGoodsCarList'); //获取购物车列表
Route::rule('delGoodsCarList', 'app/WxUser/delGoodsCarList'); //删除购物车商品
Route::rule('updateGoodsCardList', 'app/WxUser/updateGoodsCardList'); //修改购物车商品数量
Route::rule('clearCardList', 'app/WxUser/clearCardList'); //清空购物车

Route::rule('file_upload', 'app/Index/file_upload');//上传视频文件
Route::rule('upload_fileOss', 'app/Index/upload_fileOss');//上传视频文件oss

//视频相关
Route::rule('videoList', 'app/Index/videoList'); //首页视频列表
Route::rule('videoList2', 'app/WxUser/videoList2'); //视频列表
Route::rule('videoDetail', 'app/WxUser/videoDetail'); //视频详情
Route::rule('seeFinishVideo', 'app/WxUser/seeFinishVideo'); //看完视频调用

Route::rule('fractionShopList', 'app/Index/fractionShopList'); //积分商城列表
Route::rule('pointFoodsDetail', 'app/Index/pointFoodsDetail'); //积分商品详情
Route::rule('fractionExchange', 'app/WxUser/fractionExchange'); //积分兑换商品
Route::rule('PGoodsOrderList', 'app/WxUser/PGoodsOrderList'); //积分兑换商品
Route::rule('fractionHistory', 'app/WxUser/fractionHistory'); //积分明细
Route::rule('PGoodsOrderDetail', 'app/WxUser/PGoodsOrderDetail'); //积分商品详情


Route::rule('collectGoods', 'app/WxUser/collectGoods'); //收藏物品
Route::rule('cancelCollectGoods', 'app/WxUser/cancelCollectGoods'); //取消收藏
Route::rule('collectList', 'app/WxUser/collectList'); //收藏列表



//todo 分销项后台商品管理修改，写接口，视频列表，视频详情，看完视频赠送积分，积分商城列表，积分商品详情，积分兑换商品，积分兑换商品，积分明细。 上海陪诊 后台修改，增加服务数据，项目条款，添加医院路线
Route::rule('createOrder', 'app/WxUser/createOrder'); //直接创建购买订单
Route::rule('createOrder2', 'app/WxUser/createOrder2'); //购物车直接购买
Route::rule('getMemberCouponAble', 'app/WxUser/getMemberCouponAble'); //判断优惠券是否能用

Route::rule('orderPay', 'app/WxUser/orderPay'); //订单发起支付
Route::rule('orderPayBack', 'app/WxUser/orderPayBack'); //订单发起支付回调
Route::rule('orderList', 'app/WxUser/orderList'); //订单列表
Route::rule('orderDetail', 'app/WxUser/orderDetail'); //订单详情
Route::rule('finishOrder', 'app/WxUser/finishOrder'); //完成收货
Route::rule('tuiReason', 'app/WxUser/tuiReason'); //获取退款原因
Route::rule('tuiOrder', 'app/WxUser/tuiOrder'); //订单申请退款
Route::rule('orderTuiDetail', 'app/WxUser/orderTuiDetail'); //退款详情
Route::rule('tuiSendOrder', 'app/WxUser/tuiSendOrder'); //退款发货
Route::rule('editInvite', 'app/WxUser/editInvite'); //已经登录的用户通过分享码进行登录访问一次


Route::rule('getBoss', 'app/Index/getBoss');//获取老板进行测试
Route::rule('pingOrder', 'app/Index/pingOrder');//平级奖发送
Route::rule('calculateTeamReward', 'app/Index/calculateTeamReward');//团队奖励测试
Route::rule('teamMoney', 'app/WxUser/teamMoney');//团队奖励奖金2
Route::rule('getTreeTeam', 'app/Index/getTreeTeam');//获取树状团队的所有id
//-------------------财务相关---------------------
Route::rule('tixian', 'app/WxUser/tixian');//提现
Route::rule('tixianList', 'app/WxUser/tixianList');//提现记录
Route::rule('memberTop', 'app/WxUser/memberTop');//用户中心顶部相关三个参数
Route::rule('teamPerformance', 'app/WxUser/teamPerformance');//用户中心团队业绩
Route::rule('accountCenter', 'app/WxUser/accountCenter');//账户中心四个
Route::rule('shouDetailList', 'app/WxUser/shouDetailList');//收入明细
Route::rule('myTeam', 'app/WxUser/myTeam');//我的团队

//-------------------定时任务---------------------
Route::rule('getOrderPay', 'app/Index/getOrderPay');//定时任务订单支付完成
Route::rule('teamMoneyTime', 'app/Index/teamMoneyTime');//定时任务团队奖励
Route::rule('orderFinishTime', 'app/Index/orderFinishTime');//自动订单完成 发货完成后
Route::rule('pointsOrderFinishTime', 'app/Index/pointsOrderFinishTime');//自动积分订单完成
Route::rule('orderCancelTime', 'app/Index/orderCancelTime');//订单取消定时

//-------------------首页接口---------------------
Route::rule('cIndex', 'app/Index/cIndex');//1
Route::rule('cIndex2', 'app/Index/cIndex2');//2
Route::rule('getPie', 'app/Index/getPie');//派状图
Route::rule('getbar', 'app/Index/getbar');//柱状图
//-------------------折扣---------------------
Route::rule('Discount', 'app/WxUser/Discount');//折扣
Route::rule('isCanBuy', 'app/WxUser/isCanBuy');//是否可购买

Route::rule('cancelOrder', 'app/WxUser/cancelOrder');//取消订单
Route::rule('Discount22', 'app/WxUser/Discount22');//折扣2
Route::rule('Discount33', 'app/WxUser/Discount33');//折扣33

Route::rule('getUpperLevelIds2', 'app/WxUser/getUpperLevelIds2');//复购获取上级
Route::rule('reBuyReward', 'app/WxUser/reBuyReward');//复购奖励测试

Route::rule('tui', 'app/Index/tui');//订单退款
